<template>
  <div class="person">
  </div>
</template>

<script lang="ts" setup name="Person">
import { type PersonInter, type PersonList, type Persons } from '@/types/index'

let person = { id: 5, name: '张三', age: 18 }

let person2: PersonInter = { id: 5, name: '张三', age: 18 }


let person3: Persons = [
  { id: 5, name: '张三', age: 18 },
  { id: 5, name: '李四', age: 38 },
  { id: 5, name: '王五', age: 58 }
]

let person4: Array<PersonInter> = [
  { id: 5, name: '张三', age: 18 },
  { id: 5, name: '李四', age: 38 },
  { id: 5, name: '王五', age: 58 }
]

let person5: PersonList = [
  { id: 5, name: '张三', age: 18 },
  { id: 5, name: '李四', age: 38 },
  { id: 5, name: '王五', age: 58 }
]

</script>
<style scoped>
.person {
  background-color: skyblue;
  box-shadow: 0 0 10px;
  border-radius: 10px;
  padding: 20px;
}

button {
  margin: 0 5px;
}
</style>